package io.github.talelin.latticy.dto.rule.chargeCondition;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * @authoer:wulongbo
 * @createDate:2022/9/14
 * @description:
 */
@Data
public class ChargeAbsoluteUpdateDTO {

    /**
     * 规则项id
     */
    @Positive(message = "{charge.condition.chargeItemId.positive}")
    private Integer chargeItemId;

    /**
     * 规则key id
     */
    @Positive(message = "{rule.ruleKeyId.positive}")
    private Integer ruleKeyId;

    /**
     * 模板key
     */
    @NotBlank(message = "{ftlKey.not-blank}")
    private String ftlKey;

    /**
     * 输入框的值
     */
    @Positive(message = "{ruleValueId.not-blank}")
    private String ruleValueId;

    /**
     * 上限
     */
    private String max;

    /**
     * 下限
     */
    private String min;

    /**
     * 1 ：向下取整 ；2 ： 向上取整； 4： 四舍五入
     */
    private Integer accuracy;

}
